  
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="admin" />
        <title>Show Group</title>
    </head>
    <body>
		<div id="center-column">
			<div class="top-bar">
				<g:link class="button" action="create">ADD NEW</g:link>
				<h1>Show Group</h1>
				<div class="breadcrumbs">
					<a class="home" href="${createLinkTo(dir:'')}">Home</a> / 
					<g:link class="list" action="list">Group List</g:link> /
					<g:link class="create" action="create">New Group</g:link>
				</div>
			</div><br />
			<div class="select-bar-border-no"></div>
	        <div class="body">
	            <div class="dialog">
		            <div class="subdialog">
		            	<h2>Group</h2>
	                    <label for="name">Name:</label>
	                    <span id="name">${group.name}</span>
		            </div>
	            </div>
	            <div class="dialog">
		            <div class="subdialog">
		            	<h2>Users</h2>
		                <table>
		                    <thead>
		                        <tr>
		                   	        <g:sortableColumn property="username" title="Username" />
		                   	        <g:sortableColumn property="firstname" title="Firstname" />
		                   	        <g:sortableColumn property="lastname" title="Lastname" />
		                        </tr>
		                    </thead>
		                    <tbody>
	                        <g:each in="${users}" status="i" var="user">
								<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
	                         		<td><g:link controller="user" action="show" id="${user.id}">${user.username?.encodeAsHTML()}</g:link></td>
	                         		<td>${user.firstname?.encodeAsHTML()}</td>
	                         		<td>${user.lastname?.encodeAsHTML()}</td>
	                            </tr>
	                        </g:each>
		                    </tbody>
		                </table>
		            </div>
	            </div>
	            <div class="buttons">
	                <g:form controller="group">
	                    <input type="hidden" name="id" value="${group?.id}" />
	                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
	                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
	                </g:form>
	            </div>
	        </div>
		</div>
		<div id="right-column">
            <g:if test="${flash.message}">
				<strong class="h">INFO</strong>
	            <div class="box">${flash.message}</div>
            </g:if>
		</div>
    </body>
</html>
